package com.sinosoft.tcmemr.manager;

import com.sinosoft.tcmemr.entity.DoctorUserEntity;

public interface DoctorUserManager {
	
	/**
	 * 通过用户名得到医生用户信息
	 * @param userName
	 * @return DoctorUserEntity
	 */
	public DoctorUserEntity getDoctorByUserName(String userName);
	/**
	 * 通过ID得到医生用户信息
	 * @param id
	 * @return
	 */
	public DoctorUserEntity getDoctorByPrimaryKey(Integer id);
	/**
	 * 添加医生用户信息
	 * @param doctoruser
	 * @return 
	 */
	public boolean addDoctorUser(DoctorUserEntity doctoruser);
	/**
	 * 更新医生用户信息
	 * @param doctoruser
	 * @return 
	 */
	public boolean updateDoctorUser(DoctorUserEntity doctoruser);
	/**
	 * 删除医生用户信息
	 * @param id 用户ID
	 * @return
	 */
	public boolean deleteByPrimaryKey(Integer id);
}
